<%--
  Created by IntelliJ IDEA.
  User: dell
  Date: 2021/10/16
  Time: 17:17
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>客户管理</title>
    <style>
        #fenye{
            margin-left: 350px;
            margin-top: 30px;
        }
        a{
            text-decoration: none;
            color: black;
        }
    </style>
</head>
<body bgcolor="aliceblue">
<!--列表展示-->
<table align="center" border="1px solid #ccc" width="1000px">
    <caption align="center"><strong>用户信息管理</strong></caption>
    <div class="yonghu">
        <thead>
        <th>id</th>
        <th>姓名</th>
        <th>身份证号</th>
        <th>座机</th>
        <th>移动电话</th>
        <th>会员余额</th>
        <th>用户名</th>
        <th>密码</th>
        <th>编辑</th>
        </thead>
    </div>
    <tbody>
    <!--使用jstl标签中的循环控制-->
    <c:forEach items="${pageData.data}" var="one">
        <tr>
            <td>${one.id}</td>
            <td>${one.name}</td>
            <td>${one.card}</td>
            <td>${one.phone}</td>
            <td>${one.mobile}</td>
            <td>${one.remainder}</td>
            <td>${one.username}</td>
            <td>${one.password}</td>
            <td><%--<button><a href="#">编辑</a></button>--%>
                <button><a href="${pageContext.request.contextPath}/deleteccOne?id=${one.id}&currentPage=${pageData.currentPage}&pageSize=${pageData.pageSize}">删除</a></button>
                <button><a href="${pageContext.request.contextPath}/queryccOne?id=${one.id}">修改</a></button></td>
        </tr>
    </c:forEach>

    </tbody>
</table>
<!--分页控制区-->
<div id="fenye">
    <!--${pageContext.request.contextPath}获取序列目录-->
    <button><a href="${pageContext.request.contextPath}/list5?currentPage=1&pageSize=${pageData.pageSize}">首页</a></button>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    <button><a href="${pageContext.request.contextPath}/list5?currentPage=${pageData.previousPage}&pageSize=${pageData.pageSize}">上一页</a></button>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    <button><a href="${pageContext.request.contextPath}/list5?currentPage=${pageData.nextPage}&pageSize=${pageData.pageSize}">下一页</a></button>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    <button><a href="${pageContext.request.contextPath}/list5?currentPage=${pageData.totalPages}&pageSize=${pageData.pageSize}">尾页</a></button>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    <span> 第${pageData.currentPage}页，&nbsp;&nbsp;共${pageData.totalPages}页</span>
</div>
</body>
</html>
